﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WinformCommonDemo.DataModel
{
    public class DataGridViewModel
    {
        /// <summary>
        /// 属性名称
        /// </summary>
        public string PropertyName {  get; set; }
        /// <summary>
        /// 显示名称
        /// </summary>
        public string DisplayName { get; set; }
        /// <summary>
        /// 单元格控件类型
        /// </summary>
        public ColumnType ColumnType { get; set; }
        /// <summary>
        /// 列宽
        /// </summary>
        public int Width { get; set; }
        /// <summary>
        /// 读写状态 true 不可编辑 false 可编辑
        /// </summary>
        public bool ReadOnly { get; set; }
    }

    public enum ColumnType
    {
        TextBox,
        Button,
        Image,
        Combox,
        CheckBox,
        Link
    }
}
